import { createSlice } from "@reduxjs/toolkit";

const userSlice = createSlice({
    name: 'user',
    initialState: {
        subjectName: ''
    },
    reducers: {
        changeName(state, { payload }) {
            state.subjectName = payload
        }
    }
})

export const { changeName } = userSlice.actions;
export default userSlice.reducer;